import numpy as np
from matplotlib import pyplot as plt

dis_mat=np.fromfile('dis_mat.bin').reshape(300,300)
am=dis_mat.argmin(axis=0)
curv=[]
for i in range(len(am)):
    curv.append(i)

print(curv)
plt.plot(curv,am)
plt.show()